import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import ElementUI from "element-ui";
import api from "./api/api";
import store from "./store";
import "element-ui/lib/theme-chalk/index.css";
import VueAMap from 'vue-amap'
Vue.use(VueAMap);
// 初始化vue-amap
VueAMap.initAMapApiLoader({
	key: '8bc206db210c1524dae1b2bf0a8f1b3e',// 高德的key
	// 插件集合
	plugin: [
		'AMap.CircleEditor',// 圆形编辑器插件
		"AMap.Geolocation", // 定位控件，用来获取和展示用户主机所在的经纬度位置
		"AMap.Geocoder", // 地理编码与逆地理编码服务，用于地址描述与坐标间的相互转换
		"AMap.Autocomplete",
		"AMap.PlaceSearch",
		"AMap.CitySearch",
	],
	// 高德 sdk 版本，默认为 1.4.4
	v: '1.4.4'
});
//高德的安全密钥
window._AMapSecurityConfig = {
	securityJsCode:'22f93cfd1c8ff1f026ea87d9a9974d05',
}
Vue.prototype.$API = api;
Vue.config.productionTip = false;
Vue.use(ElementUI, { size: "small" });
new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount("#app");
